﻿using System;

namespace AttributeTest
{
    [AttributeUsage(AttributeTargets.Method)]
    public class VersionAttribute: Attribute
    {
        private string name;
        private string comment;

        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        public string Comment
        {
            get
            {
                return comment;
            }
            set
            {
                comment = value;
            }
        }

        public VersionAttribute(string name)
        {
            this.name = name;
        }

        public VersionAttribute(string name, string comment)
        {
            this.name = name;
            this.comment = comment;
        }
    }
}